const BaseAction = require("../../lib/action/BaseAction") ,
    { ParamOption } = require("../../lib/action/RequestParser")

const IndexAction = new BaseAction("api/basic")

IndexAction.get({
    path : "/index"
} , async ctx => {
    ctx.body = "test"
})


IndexAction.post({
    path : "/code2session" ,
    params : [
        ParamOption.String("code" , "test" , 1 , 100 )
    ]
} , async ctx => {
    console.log( ctx.request.ps )
    ctx.body = "test"
})

module.exports = IndexAction